function entity(map) {
    var arr = [];
    arr.push('');
    arr.push('{');
    var columns = map.columns;
    for (var i = 0; i < columns.length; i++) {
        var column = columns[i];
        if(!!column.columnComment){
            arr.push('  //' + column.columnComment);
        }
        arr.push((i === 0 ? '  ' : '  , ') + column.camelName + ' : \'\'');
    }
    arr.push('}');
    arr.push('');
    return arr.join("\r\n");
}


function main(map) {
    var arr = [];
    arr.push(entity(map));
    return arr.join('');
}

export default main;
